package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "auth_role")
@ApiModel(description = "系统角色详情")
public class Role {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("是否被移除 0否 1是")
    private Integer removed;
    @ApiModelProperty("标注")
    private String remark;
    @ApiModelProperty("版本数")
    private Integer versionNum;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("创建人")
    private Long fCreateUserId;
    @ApiModelProperty("更新人")
    private Long fUpdateUserId;

    @ApiModelProperty("角色名称")
    private String name;
    @ApiModelProperty("界面终端")
    private Integer terminal = Integer.valueOf(0);

    @ApiModelProperty("上级角色")
    private Long fParentRoleId = Long.valueOf(-1L);

    @ApiModelProperty("所属平台")
    private Long fPlatformUserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getRemoved() {
        return removed;
    }

    public void setRemoved(Integer removed) {
        this.removed = removed;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getVersionNum() {
        return versionNum;
    }

    public void setVersionNum(Integer versionNum) {
        this.versionNum = versionNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getfCreateUserId() {
        return fCreateUserId;
    }

    public void setfCreateUserId(Long fCreateUserId) {
        this.fCreateUserId = fCreateUserId;
    }

    public Long getfUpdateUserId() {
        return fUpdateUserId;
    }

    public void setfUpdateUserId(Long fUpdateUserId) {
        this.fUpdateUserId = fUpdateUserId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTerminal() {
        return terminal;
    }

    public void setTerminal(Integer terminal) {
        this.terminal = terminal;
    }

    public Long getfParentRoleId() {
        return fParentRoleId;
    }

    public void setfParentRoleId(Long fParentRoleId) {
        this.fParentRoleId = fParentRoleId;
    }

    public Long getfPlatformUserId() {
        return fPlatformUserId;
    }

    public void setfPlatformUserId(Long fPlatformUserId) {
        this.fPlatformUserId = fPlatformUserId;
    }
}
